package com.nit.lab.vote.dto.system;

/**
 * @author chenkedi
 */
public class TokenDTO {

    private Long userId;
    private Integer roleId;
    private String userName;

    public TokenDTO() {
    }

    public TokenDTO(Long userId, Integer roleId, String userName) {
        this.userId = userId;
        this.roleId = roleId;
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "{" +
                "\"userId\":" + userId +
                ", \"roleId\":" + roleId +
                ", \"userName\":" + "\"" + userName +"\"" +
                "}";
    }
}
